//index.js
//获取应用实例
const app = getApp()
const fetch = require('../../../utils/fetch.js')
Component({
  properties: {
    goodsid: Number
  },
  data: {
    checkAll: false,
    goodsName: '新商品'
  },
  ready () {
    let id = this.data.goodsid
    if (id > -1) {
      // todo 请求数据
    } else {
      // 新列表
    }
  },
  methods: {
    back () {
      this.triggerEvent('backgoods')
    },
  }
})
